//#pragma once
#include "Player.h"
#include <string>
#include <vector>
#include "Room.h"
#include "Monster.h"

void Player::attacked(int attackingStrength)
{

}

int Player::getArmor()
{
    return armor;
}

int Player::getAttack()
{
    return attack;
}

int Player::getHealth()
{
    return health;
}

std::vector<Item> Player::getInventory()
{
    return inventory;
}

void Player::attackMonster(std::string name)
{
    std::vector<Monster> monstersInRoom = currentRoom->getMonstersInRoom();
    for(int i = 0;i < monstersInRoom.size() ;i++)
    {
        Monster currentMonster = monstersInRoom[i];
        if(name.compare(currentMonster.getType()) >= 0)
        {
            currentMonster.attacked(getAttack());
        }
    }
}

bool Player::isAlive()
{
    return (getHealth() > 0);
}

Player::~Player()
{
    //dtor
}
